package com.hf.bean;

import java.sql.Timestamp;

import tool.JsonTool;

/**
 * 注入页面的wx.config对象
 * @author Administrator
 *
 */
public class WxConfig {
 private  static boolean debug;
 private  static String appId;
 private  static String str_jsApiList;
 
 private  long timestamp;
 private  String nonceStr;	//随机字符串
 private  String signature;
 private  String[] jsApiList;
 

//	appId: 'wxe09104e1398974e9',    
//	timestamp: 1450662395, 
 //			   1450753776520
 //			   1450754016
//	nonceStr: 'Wm3WZYTPz0wzccnW',    
//	signature: 'a10f4a32b3f20f53cb86a3d9ba7f7037b4820f9c',   
//	jsApiList:
 
 public WxConfig() {
	 str_jsApiList="checkJsApi, onMenuShareTimeline,onMenuShareAppMessage,onMenuShareQQ," +
	 		"onMenuShareWeibo,hideMenuItems,showMenuItems,hideAllNonBaseMenuItem," +
	 		"showAllNonBaseMenuItem,translateVoice,startRecord,stopRecord,onRecordEnd," +
	 		"playVoice,pauseVoice,stopVoice,uploadVoice,downloadVoice,chooseImage,previewImage," +
	 		"uploadImage,downloadImage,getNetworkType,openLocation,getLocation,hideOptionMenu," +
	 		"showOptionMenu,closeWindow,scanQRCode,chooseWXPay,openProductSpecificView,addCard," +
	 		"chooseCard,openCard";
	 appId="wxe09104e1398974e9";
	 debug=true;
	 nonceStr="Wm3WZYTPz0wzccnW";
	 jsApiList=str_jsApiList.split(",");
	 signature="";
	 timestamp=System.currentTimeMillis()/1000;
}

 
 
 
 public static void main(String[] args) throws Exception{
	 System.out.println(JsonTool.obj2json(new WxConfig()));
 }




public boolean isDebug() {
	return debug;
}




public void setDebug(boolean debug) {
	this.debug = debug;
}




public String getAppId() {
	return appId;
}




public void setAppId(String appId) {
	this.appId = appId;
}




public long getTimestamp() {
	return timestamp;
}




public void setTimestamp(long timestamp) {
	this.timestamp = timestamp;
}




public String getNonceStr() {
	return nonceStr;
}




public void setNonceStr(String nonceStr) {
	this.nonceStr = nonceStr;
}




public String getSignature() {
	return signature;
}




public void setSignature(String signature) {
	this.signature = signature;
}




public String[] getJsApiList() {
	return jsApiList;
}




public void setJsApiList(String[] jsApiList) {
	this.jsApiList = jsApiList;
}
 
 
 

}
